package top.jiangqiang.qyblog.core.base.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangQiang
 * @since 2022-07-31
 */
@Data
@Accessors(chain = true)
@Schema(name = "响应数据公共字段", description = "响应数据公共字段")
public abstract class BaseEntityVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "创建人")
    private Long createUser;

    @Schema(description = "最近一次修改此数据的用户")
    private Long updateUser;

    @Schema(description = "创建时间", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "最后更新时间", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
